package top.lyunz.lucky.hr.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.lyunz.lucky.hr.bean.ConfigFileFirstKind1;
import top.lyunz.lucky.hr.bean.ConfigFileFirstKindExample1;
import top.lyunz.lucky.hr.bean.ConfigFileSecondKind1;
import top.lyunz.lucky.hr.bean.ConfigFileSecondKindExample1;
import top.lyunz.lucky.hr.bean.ConfigFileThirdKind1;
import top.lyunz.lucky.hr.bean.ConfigFileThirdKindExample1;
import top.lyunz.lucky.hr.bean.ConfigMajor1;
import top.lyunz.lucky.hr.bean.ConfigMajorExample1;
import top.lyunz.lucky.hr.bean.ConfigMajorKind1;
import top.lyunz.lucky.hr.bean.ConfigMajorKindExample1;
import top.lyunz.lucky.hr.bean.HumanfileDig;
import top.lyunz.lucky.hr.bean.HumanfileDigExample;
import top.lyunz.lucky.hr.mapper.ConfigFileFirstKindMapper1;
import top.lyunz.lucky.hr.mapper.ConfigFileSecondKindMapper1;
import top.lyunz.lucky.hr.mapper.ConfigFileThirdKindMapper1;
import top.lyunz.lucky.hr.mapper.ConfigMajorKindMapper1;
import top.lyunz.lucky.hr.mapper.ConfigMajorMapper1;
import top.lyunz.lucky.hr.mapper.HumanfileDigMapper;
import top.lyunz.lucky.hr.service.HumanfileDigService;
@Service
public class HumanfileDigServiceImpl implements HumanfileDigService {
	@Autowired
	private HumanfileDigMapper humanfileDigMapper;
	@Autowired
	private ConfigFileFirstKindMapper1 configFileFirstKindMapper1;
	@Autowired
	private ConfigFileSecondKindMapper1 configFileSecondKindMapper1;
	@Autowired
	private ConfigFileThirdKindMapper1 configFileThirdKindMapper1;
	@Autowired
	private ConfigMajorKindMapper1 configMajorKindMapper1;
	@Autowired
	private ConfigMajorMapper1 configMajorMapper1;
	/*登记*/
	
	
	
	
	/*审核*/
	@Override
	public List<HumanfileDig> getAll() {
		return humanfileDigMapper.selectByExample(new HumanfileDigExample());
	}
	@Override
	public HumanfileDig getById(int hfdId) {
		return humanfileDigMapper.selectByPrimaryKey(hfdId);
	}
	
	@Override
	public boolean update_sh(HumanfileDig humanfileDig) {
		return humanfileDigMapper.updateByPrimaryKey(humanfileDig)>0;
	}
	
	
	/*查询*/
	@Override
	public List<ConfigFileFirstKind1> getAll_yj() {
		return configFileFirstKindMapper1.selectByExample(new ConfigFileFirstKindExample1());
	}
	@Override
	public List<ConfigFileSecondKind1> getAll_ej() {
		return configFileSecondKindMapper1.selectByExample(new ConfigFileSecondKindExample1());
	}
	@Override
	public List<ConfigFileThirdKind1> getAll_sj() {
		return configFileThirdKindMapper1.selectByExample(new ConfigFileThirdKindExample1());
	}
	@Override
	public List<ConfigMajorKind1> getAll_zf() {
		return configMajorKindMapper1.selectByExample(new ConfigMajorKindExample1());
	}
	@Override
	public List<ConfigMajor1> getAll_zn() {
		return configMajorMapper1.selectByExample(new ConfigMajorExample1());
	}
	
	
	@Override
	public List<HumanfileDig> getAll_D(HumanfileDig humanfileDig) {
		return humanfileDigMapper.selectByD(humanfileDig);
	}
	

}
